package com.jcxh.sg_exam.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @TableName user
 */
@Data
public class UpdateUserDto implements Serializable {


    @ApiModelProperty(value = "id", required = true)
    @NotNull(message = "id不能为空")
    private Integer id;
    /**
     * 姓名
     */

    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不能为空")
    private String name;

    /**
     * 工作单位
     */
    @ApiModelProperty(value = "工作单位", required = true)
    @NotBlank(message = "工作单位不能为空")
    private String workUnit;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号码", required = true)
    @NotBlank(message = "身份证号码不能为空")
    private String idNumber;

    /**
     * 电话号码
     */
    @ApiModelProperty(value = "电话号码", required = true)
    @NotBlank(message = "电话号码不能为空")
    private String phone;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}